import request from "@/utils/request";
export default {
  //GET /admin/product/getCategory1    getCategory1
//获取一级分类
  getCategory1(){
    return request.get('/admin/product/getCategory1')
  },


//GET /admin/product/getCategory2/{category1Id}   getCategory2
//根据一级分类的id获取二级分类
  getCategory2(category1Id){
    return request.get(`/admin/product/getCategory2/${category1Id}`)
  },



//GET /admin/product/getCategory3/{category2Id}  getCategory3
//根据二级分类的id获取三级分类的数据
  getCategory3(category2Id){
    return request.get(`/admin/product/getCategory3/${category2Id}`)
  }

}
